package com.zhang.zxx.boot.controller;


import com.zhang.zxx.boot.service.SysDeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



/**
 * 部门表: 接口控制层
 *
 * @author zhangxiaoxiang
 * @date 2021-11-27
 */
@Slf4j
@RestController
@Api(tags = "部门表接口管理")
@RequiredArgsConstructor
@RequestMapping("/sys-dept")
public class SysDeptController {
    private final SysDeptService service;

    @ApiOperation(value = "SysDept列表接口")
    @PostMapping("/list")
    public Object list() {
        log.info("进入了SysDept列表接口");
        return service.list();
    }


}
